package com.twu.biblioteca;

import java.io.IOException;

public class BibliotecaApp {

    private String welcomeString;

    public static void main(String[] args) throws IOException {
        BibliotecaApp welcomePage = new BibliotecaApp();
        welcomePage.setWelcomeMessage("Welcome to Bangalore public library.We house thousands of books to cater to your unique reading preference." +
                "\nTry our new application \nBIBLIOTECA\nthat coalesces the enchanting worlds of reading and internet." +
                "\nImmerse the voracious reader in you and do let us know how your experience was.\nTo know more,visit our website");

        System.out.println(welcomePage.welcomeString);
        welcomePage.callChosenMenu();
    }

    public void setWelcomeMessage(String welcomeString) {
        this.welcomeString = welcomeString;
    }

    public String getWelcomeMessage() {
        return welcomeString;
    }

    public void callChosenMenu() throws IOException {
     ChooseMenu showOptions = this.getShowOptions();
     showOptions.chooseMenuOption();
    }

    public ChooseMenu getShowOptions() {
        return new ChooseMenu();
    }
}

